package com.itheima.Demo;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Demo字符缓冲输出流 {
    public static void main(String[] args) throws IOException {
        //字符缓冲输出流
        BufferedWriter bw  = new BufferedWriter(new FileWriter("Day17codes\\aaa\\123.txt"));
        //写出一个字符
        bw.write(97);
        //写出一个字符数组
        char[] arr = {97,98,99,100,35103,25103};
        bw.write(arr);
        ////写出一个字符数组的一部分
        bw.write(arr,2,2);


        //关流
        bw.close();
    }
}
